﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace dotnet.Controllers
{

    [Route("api/[controller]")]
    [ApiController]
    [Authorize]
    public class LqController : Controller
    {

        [HttpGet("getList1")]
        public List<string> GetList()
        {
            List<string> list =
            [
                "aa","bb","cc","ddd"
            ];
            List<string> nList = (from v in list where v.Equals("cc") select v).ToList();
          
            return nList;
           
        }
    }
}
